package com.lsl.facade_pattern.example;

/**
 * description:
 *
 * @author: liushengli
 * data: 2022/11/30
 */
//爆米花机
public class PopCorn {
    private PopCorn() {
    }

    private static PopCorn popCorn = new PopCorn();

    public static PopCorn getInstance() {
        return popCorn;
    }

    public void on() {
        System.out.println("...PopCorn on...");

    }

    public void pop() {
        System.out.println("...PopCorn pop...");

    }

    public void off() {
        System.out.println("...PopCorn off...");

    }

    public void pause() {
        System.out.println("...PopCorn pause...");

    }
}